package com.sinsoft.monitorDemo.entity;

import java.util.Map;

public class MysqlInfo {
	private Double cpuUsedPer;
	private Double memUsedPer;
	private Map<Integer,String> portStatus;
	private String status;
	private Integer processCurrent;
	private Integer connections;
	private Integer connectionsActive;
	private Integer maxConnections;
	private Integer slowQueries;
	private Double longQueryTime;
	private Long time;

	public MysqlInfo() {
		super();
	}

	
	public MysqlInfo(Double cpuUsedPer, Double memUsedPer, Map<Integer,String> portStatus,
			String status, Integer processCurrent, Integer connections,
			Integer connectionsActive, Integer maxConnections,
			Integer slowQueries, Double longQueryTime,Long time) {
		super();
		this.cpuUsedPer = cpuUsedPer;
		this.memUsedPer = memUsedPer;
		this.portStatus = portStatus;
		this.status = status;
		this.processCurrent = processCurrent;
		this.connections = connections;
		this.connectionsActive = connectionsActive;
		this.maxConnections = maxConnections;
		this.slowQueries = slowQueries;
		this.longQueryTime = longQueryTime;
		this.time = time;
	}


	public Double getCpuUsedPer() {
		return cpuUsedPer;
	}

	public void setCpuUsedPer(Double cpuUsedPer) {
		this.cpuUsedPer = cpuUsedPer;
	}

	public Double getMemUsedPer() {
		return memUsedPer;
	}

	public void setMemUsedPer(Double memUsedPer) {
		this.memUsedPer = memUsedPer;
	}

	public Map<Integer,String> getPortStatus() {
		return portStatus;
	}

	public void setPortStatus(Map<Integer,String> portStatus) {
		this.portStatus = portStatus;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getProcessCurrent() {
		return processCurrent;
	}

	public void setProcessCurrent(Integer processCurrent) {
		this.processCurrent = processCurrent;
	}

	public Integer getConnectionsActive() {
		return connectionsActive;
	}

	public void setConnectionsActive(Integer connectionsActive) {
		this.connectionsActive = connectionsActive;
	}

	public Integer getMaxConnections() {
		return maxConnections;
	}

	public void setMaxConnections(Integer maxConnections) {
		this.maxConnections = maxConnections;
	}

	public Integer getSlowQueries() {
		return slowQueries;
	}

	public void setSlowQueries(Integer slowQueries) {
		this.slowQueries = slowQueries;
	}

	public Double getLongQueryTime() {
		return longQueryTime;
	}

	public void setLongQueryTime(Double longQueryTime) {
		this.longQueryTime = longQueryTime;
	}


	public Integer getConnections() {
		return connections;
	}


	public void setConnections(Integer connections) {
		this.connections = connections;
	}
	
	


	public Long getTime() {
		return time;
	}


	public void setTime(Long time) {
		this.time = time;
	}


	@Override
	public String toString() {
		return "MysqlInfo [cpuUsedPer=" + cpuUsedPer + ", memUsedPer="
				+ memUsedPer + ", portStatus=" + portStatus + ", status="
				+ status + ", processCurrent=" + processCurrent
				+ ", connections=" + connections + ", connectionsActive="
				+ connectionsActive + ", maxConnections=" + maxConnections
				+ ", slowQueries=" + slowQueries + ", longQueryTime="
				+ longQueryTime + "]";
	}

}
